package com.itheima.iterator;

import java.util.ArrayList;
import java.util.Collection;

public class IteratorDemo03 {
    public static void main(String[] args) {
        Collection<String> collection = new ArrayList<>();
        collection.add("a");
        collection.add("b");
        collection.add("c");
        collection.add("d");
        System.out.println(collection);//[a, b, c, d]

        collection.remove("a");
        System.out.println(collection);//[b, c, d]


    }
}
